import {studentInstance} from "@/api/common/util.ts";

export const getHomework = (courseId: any) => {
    return studentInstance.get('/homework/student/' + courseId + '/list');
}
export const getHomeworkDetail = (homeworkId: any) => {
    return studentInstance.get('/homework/student/' + homeworkId);
}

export const submitHomework = (data: any, homeworkId: string) => {
    return studentInstance.post(`/homework/submit/${homeworkId}`, data);
}